var app = new Vue({
    el:"#userInfo",
    data:{
        username:"1",
        sex:"1",
        body_weight:"1",
        body_height:"1",
        heart_rate:"1",
        blood_pressure:"1",
        body_temperature:"1",
        healthiffo:"1",
    },
    mounted() {

        this.getJoke()

    },
    methods:{

        getJoke:function(){

            var that=this;
            axios.get("http://116.62.241.190:8080/findUserInfo").then
            (function(response){
                // console.log(response);
               that.sex=response.data.sex;
               that.username=response.data.username;
               that.body_weight=response.data.body_weight;
               that.body_height=response.data.body_height;
               that.heart_rate=response.data.heart_rate;
               that.blood_pressure=response.data.blood_pressure;
               that.body_temperature=response.data.body_temperature;
               that.healthiffo=response.data.healthInfo;
            },function(err){

                alert(err)
            })
        },

    }
})